package com.scrcu.cloud.wechat.home.endpoint.customer.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName(value ="book_info")
public class BookInfo implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 82136354123878L;

    //主建
    @TableId(value = "bookid")
    private String bookId;
    //用户信息
    private String uid; //用户唯一标识
    private String uname;
    private String idcard;
    private String telnum;

    private double amount; //金额

    private String btype; //业务种类  1 存款、 2 贷款、3其他
    private String bdesc; //详情描述、如用途、需要办理的业务等

    //预约日期
    private int year;
    private int month;
    private int day;

    /**
     * 创建时间
     */
    @TableField(value="createtime")
    private LocalDateTime createTime;

    /**
     * 完成时间
     */
    @TableField(value="donetime")
    private LocalDateTime doneTime;

    /**
     * 完成时间
     */
    private int status; //状态  0 为未完成  1 为完成  2为逾期 3为已取消 99为处理中

    //预约机构唯一主键
    @TableField(value="map_id")
    private String map_id;

    @TableField(value="staff_id")
    private String staffId;

    @TableField(value="staff_name")
    private String staffName;
}
